package code.c03;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/15 11:08
 * @package code.c03
 * @description 文件说明
 */

public class Car {
    private String branch;
    private String color;


    public Car() {
    }

    public Car(String branch, String color) {
        this.branch = branch;
        this.color = color;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Car{" +
                "branch='" + branch + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Car car = new Car();
        car.setBranch("奥迪");
        car.setColor("蓝色");

        System.out.println(car.toString());
    }
}
